package cn.wl.shiro.util;

import org.apache.shiro.crypto.hash.SimpleHash;

public class MD5Utils {
    //盐值
    public static final String SALT = "wl";
    //加密方法
    public static String encrypt(String pwd){
        SimpleHash simpleHash = new SimpleHash("MD5", pwd, SALT, 10);
        return simpleHash.toString();
    }

    public static void main(String[] args) {
        String encrypt = MD5Utils.encrypt("123");
        System.out.println(encrypt);

    }
}
